/**
 * @Date: 2022-04-13 16:07:22
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-13 16:16:17
 * @FilePath: \weibo-api\model\UserRelation.js
 * @Description: 用户关系
 */
const sequelize = require("../db/seq");
const { DataTypes } = require("sequelize");
const UserRelations = sequelize.define("userRelations", {
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    comment: "用户id",
  },
  followerId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    comment: "被关注用户id",
  },
});
module.exports = UserRelations;
